import http from '@/http/http'
import { SetSysUser, SysUserListParam } from './SysUserModel'
enum Api {
    getSysUserList = '/api/v1/sysuser/getList',
    setSysUser = '/api/v1/sysuser/sysuser',
    updateSysUserAvatar = '/api/v1/sysuser/avatar'
}

// 客服列表
export const getSysUserListApi = async (param: SysUserListParam) => {
    return await http.get(Api.getSysUserList, param)
}

// 设置
export const editSysUserApi = async (param: SetSysUser) => {
    return await http.put(Api.setSysUser, param)
}

// 更新客服头像
export const updateSysUserAvatarApi = async (param: SetSysUser) => {
    return await http.put(Api.updateSysUserAvatar, param)
}
